local mihuo = fk.CreateSkill {
  name = "th_mihuo",
  tags = { Skill.Compulsory },
}

mihuo:addEffect(fk.TargetSpecified, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target ~= player and player:hasSkill("th_mihuo", true) and data.firstTarget and
      data.card and table.find(data:getAllTargets(), function(p) return p == player end)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(target, "th_mihuo_"..data.card:getTypeString().."-turn", 1)
  end,
})

mihuo:addEffect("prohibit", {
  is_prohibited = function(self, from, to, card)
    return from and from ~= to and to:hasSkill(mihuo.name) and from:getMark("th_mihuo_"..card:getTypeString().."-turn") ~= 0
  end
})

Fk:loadTranslationTable{
  ["th_mihuo"] = "迷惑",
  [":th_mihuo"] = "锁定技，其他角色使用牌指定你为目标后，你令其本回合不能再对你使用此类型的牌。",
}

return mihuo